package com.ruoyi.project.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.mapper.ProNoticeMapper;
import com.ruoyi.project.domain.ProNotice;
import com.ruoyi.project.service.IProNoticeService;

/**
 * 通知信息Service业务层处理
 * 
 * @author cxc
 * @date 2024-12-02
 */
@Service
public class ProNoticeServiceImpl implements IProNoticeService 
{
    @Autowired
    private ProNoticeMapper proNoticeMapper;

    /**
     * 查询通知信息
     * 
     * @param noticeId 通知信息主键
     * @return 通知信息
     */
    @Override
    public ProNotice selectProNoticeByNoticeId(Long noticeId)
    {
        return proNoticeMapper.selectProNoticeByNoticeId(noticeId);
    }

    /**
     * 查询通知信息列表
     * 
     * @param proNotice 通知信息
     * @return 通知信息
     */
    @Override
    public List<ProNotice> selectProNoticeList(ProNotice proNotice)
    {
        return proNoticeMapper.selectProNoticeList(proNotice);
    }

    /**
     * 新增通知信息
     * 
     * @param proNotice 通知信息
     * @return 结果
     */
    @Override
    public int insertProNotice(ProNotice proNotice)
    {
        return proNoticeMapper.insertProNotice(proNotice);
    }

    /**
     * 修改通知信息
     * 
     * @param proNotice 通知信息
     * @return 结果
     */
    @Override
    public int updateProNotice(ProNotice proNotice)
    {
        return proNoticeMapper.updateProNotice(proNotice);
    }

    /**
     * 批量删除通知信息
     * 
     * @param noticeIds 需要删除的通知信息主键
     * @return 结果
     */
    @Override
    public int deleteProNoticeByNoticeIds(Long[] noticeIds)
    {
        return proNoticeMapper.deleteProNoticeByNoticeIds(noticeIds);
    }

    /**
     * 删除通知信息信息
     * 
     * @param noticeId 通知信息主键
     * @return 结果
     */
    @Override
    public int deleteProNoticeByNoticeId(Long noticeId)
    {
        return proNoticeMapper.deleteProNoticeByNoticeId(noticeId);
    }
}
